package com.westos.userauth.domain;

import javafx.beans.DefaultProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: Youzg
 * @CreateTime: 2020-10-31 11:45
 * @Description: 带你深究Java的本质！
 */
public class UserLoginSecurityQuestion {
    /**
     * 问题枚举id
     */

    private String questionEnumId;

    /**
     * 用户登录id
     */
    private String userLoginId;

    /**
     * 安全问题
     */
    private String securityAnswer;

    /**
     * 最后更新时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date lastUpdatedStamp;

    /**
     * 最后更新tx时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date lastUpdatedTxStamp;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdStamp;

    /**
     * 创建tx时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdTxStamp;


    public UserLoginSecurityQuestion() {
    }

    public UserLoginSecurityQuestion(String questionEnumId, String userLoginId, String securityAnswer, Date lastUpdatedStamp, Date lastUpdatedTxStamp, Date createdStamp, Date createdTxStamp) {
        this.questionEnumId = questionEnumId;
        this.userLoginId = userLoginId;
        this.securityAnswer = securityAnswer;
        this.lastUpdatedStamp = lastUpdatedStamp;
        this.lastUpdatedTxStamp = lastUpdatedTxStamp;
        this.createdStamp = createdStamp;
        this.createdTxStamp = createdTxStamp;
    }

    public String getQuestionEnumId() {
        return questionEnumId;
    }

    public void setQuestionEnumId(String questionEnumId) {
        this.questionEnumId = questionEnumId;
    }

    public String getUserLoginId() {
        return userLoginId;
    }

    public void setUserLoginId(String userLoginId) {
        this.userLoginId = userLoginId;
    }

    public String getSecurityAnswer() {
        return securityAnswer;
    }

    public void setSecurityAnswer(String securityAnswer) {
        this.securityAnswer = securityAnswer;
    }

    public Date getLastUpdatedStamp() {
        return lastUpdatedStamp;
    }

    public void setLastUpdatedStamp(Date lastUpdatedStamp) {
        this.lastUpdatedStamp = lastUpdatedStamp;
    }

    public Date getLastUpdatedTxStamp() {
        return lastUpdatedTxStamp;
    }

    public void setLastUpdatedTxStamp(Date lastUpdatedTxStamp) {
        this.lastUpdatedTxStamp = lastUpdatedTxStamp;
    }

    public Date getCreatedStamp() {
        return createdStamp;
    }

    public void setCreatedStamp(Date createdStamp) {
        this.createdStamp = createdStamp;
    }

    public Date getCreatedTxStamp() {
        return createdTxStamp;
    }

    public void setCreatedTxStamp(Date createdTxStamp) {
        this.createdTxStamp = createdTxStamp;
    }

    public UserLoginSecurityQuestion(String questionEnumId, String userLoginId, String securityAnswer) {
        this.questionEnumId = questionEnumId;
        this.userLoginId = userLoginId;
        this.securityAnswer = securityAnswer;
    }

}
